﻿using System.Configuration;
using System.Diagnostics;

namespace JetBlack.FeedBus.Distributor
{
    /// <summary>
    /// The application environment.
    /// </summary>
    public static class AppEnvironment
    {
        /// <summary>
        /// The logger.
        /// </summary>
        readonly static public TraceSource TraceSource = new TraceSource("JetBlack.FeedBus.Distributor");

        readonly private static Config.Handler configuration = (Config.Handler)ConfigurationManager.GetSection("feedBusDistributor");

        /// <summary>
        /// The configuration.
        /// </summary>
        public static Config.Adapter Configuration
        {
            get { return configuration.DefaultConfig; }
        }
    }
}
